package com.aspose.cells;

final class zrz {
   private static float a = 0.4F;

   public static Color a(int var0, Color var1) {
      if (var0 == 7 || var0 == 8) {
         var0 = a(var1, var0);
      }

      float var2 = 0.0F;
      switch(var0) {
      case 0:
         return Color.getTransparent();
      case 1:
         return com.aspose.cells.b.a.b.zw.a();
      case 2:
         return var1;
      case 3:
         var2 = -zkl.a;
         break;
      case 4:
         var2 = -zkl.b;
         break;
      case 5:
         var2 = zkl.a;
         break;
      case 6:
         var2 = zkl.b;
      case 7:
      case 8:
      default:
         break;
      case 9:
         return a(var1);
      }

      return zkl.a(var1, var2);
   }

   private static int a(Color var0, int var1) {
      if (var0.b() > a) {
         return var1 == 7 ? 3 : 4;
      } else {
         return var1 == 7 ? 5 : 6;
      }
   }

   private static Color a(Color var0) {
      return var0.b() > a ? Color.getBlack() : Color.getWhite();
   }
}
